package com.camunda.workflow.controller.task.service;

import lombok.extern.slf4j.Slf4j;
import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.JavaDelegate;
/**
 * service task type : java class
 */
@Slf4j
public class ReserveRepair implements JavaDelegate {

    @Override
    public void execute(DelegateExecution execution) throws Exception {
        log.info("进入到预约家电修理任务");
        String currentActivityName = execution.getCurrentActivityName();
        // 预约的具体调用
        //...
        String processDefinitionId = execution.getProcessDefinitionId();
        log.info("当前活动名称："+currentActivityName+" 流程定义id: "+processDefinitionId);

    }
}

